/*
 * @Author: xiawei 1243162387@qq.com
 * @Date: 2024-04-15 09:30:21
 * @LastEditors: xiawei 1243162387@qq.com
 * @LastEditTime: 2024-04-15 09:31:49
 */

import { request } from '@package/shared/utils';
import  { ResponseType } from '@package/shared/types';
export type loginForm  = {
    pass: string,
    account: string
}
// 用户登录
export const login = (data: loginForm):Promise<ResponseType> => {
    return request.post('/login', data)
}
// 获取用户登录信息
export const getUserInfo = (userId: string):Promise<ResponseType> => {
    return request.get(`/getUserInfoById?id=${userId}`)
}